<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style lang="">
    .transparent-shadow {
      height: 80vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .margin-right {
      margin-right: 2em;
    }

    .margin-bottom {
      margin-bottom: 1em;
    }

    .align-center {
      text-align: center;
    }

    .box-shadow {
      box-shadow: 2px 4px 8px #3723a1;
    }

    .drop-shadow {
      filter: drop-shadow(2px 4px 8px #3723a1);
    }
  </style>
</head>

<body>
  <div class="transparent-shadow">
    <div class="margin-right">
      <div class="margin-bottom align-center">
        box-shadow
      </div>

      <img class="box-shadow" src="https://stackdiary.com/wp-content/uploads/2022/02/logo.png"
        alt="box-shadow example (transparent)">
    </div>

    <div>
      <div class="margin-bottom align-center">
        drop-shadow
      </div>

      <img class="drop-shadow" src="https://stackdiary.com/wp-content/uploads/2022/02/logo.png"
        alt="drop-shadow example (transparent)">
    </div>
  </div>
</body>

</html>